<template>
  <div class="zst-box">
	<zst-header :title='title'></zst-header>
	
		<div class="over-scroll" id="demo">
			<nav class="top-nav2" style="width:990px" >
			<p :class="currentNav==1?'hover':''" @click='currentNav=1'>基本走势<span></span></p>
			<p :class="currentNav==2?'hover':''" @click='currentNav=2'>大小走势<span></span></p>
			<p :class="currentNav==3?'hover':''" @click='currentNav=3'>奇偶走势<span></span></p>
			<p :class="currentNav==4?'hover':''" @click='currentNav=4'>跨度走势<span></span></p>
			<p :class="currentNav==5?'hover':''" @click='currentNav=5'>前区走势<span></span></p>
			<p :class="currentNav==6?'hover':''" @click='currentNav=6'>后区走势<span></span></p>
			<p :class="currentNav==7?'hover':''" @click='currentNav=7'>历史走势<span></span></p>
			<p :class="currentNav==8?'hover':''" @click='currentNav=8'>连号走势<span></span></p>
			<p :class="currentNav==9?'hover':''" @click='currentNav=9'>重号走势<span></span></p>
			</nav>
		</div>
	
	
	
    <div class="superbox">
		<div class="chart-container">
			<div class="chart-main">
				<div :class="currentNav==1?'page page1 active pageTit':'page page1 pageTit'" style="width:1740px;">
					<div class="nav-com">
						<div class="nav-item" style="display: block;">
							<div class="tit-record">
								<span :class="basicSort?'icon_jt_down flex_2':'icon_jt flex_2'" @click='sortData(basic,currentNav)'><p>期次</p></span>
								<span><p>星<br>期</p></span>
								<span class="flex_12">
									<p>一区</p>
									<div>
										<p>01</p>
										<p>02</p>
										<p>03</p>
										<p>04</p>
										<p>05</p>
										<p>06</p>
										<p>07</p>
										<p>08</p>
										<p>09</p>
										<p>10</p>
										<p>11</p>
										<p>12</p>
									</div>
								</span>
								<span class="flex_12">
									<p>二区</p>
									<div>
										<p>13</p>
										<p>14</p>
										<p>15</p>
										<p>16</p>
										<p>17</p>
										<p>18</p>
										<p>19</p>
										<p>20</p>
										<p>21</p>
										<p>22</p>
										<p>23</p>
										<p>24</p>
									</div>
								</span>
								<span class="flex_11">
									<p>三区</p>
									<div>
										<p>25</p>
										<p>26</p>
										<p>27</p>
										<p>28</p>
										<p>29</p>
										<p>30</p>
										<p>31</p>
										<p>32</p>
										<p>33</p>
										<p>34</p>
										<p>35</p>
									</div>
								</span>
								<span class="flex_12">
									<p>蓝球</p>
									<div>
										<p>01</p>
										<p>02</p>
										<p>03</p>
										<p>04</p>
										<p>05</p>
										<p>06</p>
										<p>07</p>
										<p>08</p>
										<p>09</p>
										<p>10</p>
										<p>11</p>
										<p>12</p>
									</div>
								</span>
								<span class="flex_2 line40">
									<p>和值</p>
								</span>
								<span class="flex_2 line40">
									<p>跨度</p>
								</span>
								<span class="flex_2 line40">
									<p>区间比</p>
								</span>
								<span class="flex_2 line40">
									<p>奇偶比</p>
								</span>
							</div>
							<div class="com-record">
								<ul>
									<li v-for='(item,index) in basic' :key='index'>
										<span class="flex_2">{{item.periodId}}</span>
										<span>{{item.weekDay}}</span>
										<div class="flex-box flex_35">
											<template v-for='(items,indexs) in item.origin'>
												<span v-if='items == 0' class="cur"><font>{{(indexs+1)<10?('0'+(indexs+1).toString()):(indexs+1)}}</font></span>
												<span v-else>{{items}}</span>
											</template>
										</div>
										<div class="flex-box flex_12">
											<template v-for='(items,indexs) in item.blueOrigin'>
												<span v-if='items == 0' class="cur_blue"><font>{{(indexs+1)<10?('0'+(indexs+1).toString()):(indexs+1)}}</font></span>
												<span v-else>{{items}}</span>
											</template>
										</div>
										
										<span class="flex_2">{{item.sumValue}}</span>
										<span class="flex_2">{{item.span}}</span>
										<span :class="checkValSame(item.sectionScore)?'cur3 flex_2':'flex_2'"><font>{{item.sectionScore}}</font></span>
										<span :class="checkValSame(item.parityScore)?'cur4 flex_2':'flex_2'"><font>{{item.parityScore}}</font></span>
									</li>
								</ul>
							</div>
						</div>
					</div>
					<div class="zd-box">
						<ul>
							<li class="color_red">
								<span class="flex_2">出现次数</span>
								<span>-</span>
								<div class="flex_35 flex-box">
									<template v-for='(item,index) in basicOther.appearCount'>
										<span>{{item}}</span>
									</template>
								</div>
								<div class="flex_12 flex-box">
									<template v-for='(item,index) in basicOther.blueAppearCount'>
										<span>{{item}}</span>
									</template>
								</div>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
							</li>
							<li class="color_gray">
								<span class="flex_2">平均遗漏</span>
								<span>-</span>
								<div class="flex_35 flex-box">
									<template v-for='(item,index) in basicOther.avgMiss'>
										<span>{{item}}</span>
									</template>
								</div>
								<div class="flex_12 flex-box">
									<template v-for='(item,index) in basicOther.blueAvgMiss'>
										<span>{{item}}</span>
									</template>
								</div>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
							</li>
							<li  class="color_blue">
								<span class="flex_2">最大遗漏</span>
								<span>-</span>
								<div class="flex_35 flex-box">
									<template v-for='(item,index) in basicOther.maxMiss'>
										<span>{{item}}</span>
									</template>
								</div>
								<div class="flex_12 flex-box">
									<template v-for='(item,index) in basicOther.blueMaxMiss'>
										<span>{{item}}</span>
									</template>
								</div>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
							</li>
							<li  class="color_black">
								<span class="flex_2">最大连出</span>
								<span>-</span>
								<div class="flex_35 flex-box">
									<template v-for='(item,index) in basicOther.maxContinuous'>
										<span>{{item}}</span>
									</template>
								</div>
								<div class="flex_12 flex-box">
									<template v-for='(item,index) in basicOther.blueMaxContinuous'>
										<span>{{item}}</span>
									</template>
								</div>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
								<span class="flex_2">-</span>
							</li>
						</ul>
					</div>
				</div>
				<div :class="currentNav==2?'page page2 active pageTit':'page page2 pageTit'" style="width:1150px">
					<div class="nav-com">
						<div class="nav-item" style="display: block;">
							<div class="tit-record">
								<span :class="bigOrSmallSort?'icon_jt_down flex_2':'icon_jt flex_2'" @click='sortData(bigOrSmall,currentNav)'><p>期次</p></span>
								<span><p>星<br>期</p></span>
								<span class="flex_2">
									<p>第一位</p>
									<div>
										<p>大</p>
										<p>小</p>
									</div>
								</span>
								<span class="flex_2">
									<p>第二位</p>
									<div>
										<p>大</p>
										<p>小</p>
									</div>
								</span>
								<span class="flex_2">
									<p>第三位</p>
									<div>
										<p>大</p>
										<p>小</p>
									</div>
								</span>
								<span class="flex_2">
									<p>第四位</p>
									<div>
										<p>大</p>
										<p>小</p>
									</div>
								</span>
								<span class="flex_2">
									<p>第五位</p>
									<div>
										<p>大</p>
										<p>小</p>
									</div>
								</span>
								
								<span class="flex_6">
									<p>大小比</p>
									<div>
										<p>0:5</p>
										<p>1:4</p>
										<p>2:3</p>
										<p>3:4</p>
										<p>4:5</p>
										<p>5:0</p>
									</div>
								</span>
								<span class="flex_2">
									<p>蓝球第一位</p>
									<div>
										<p>大</p>
										<p>小</p>
									</div>
								</span>
								<span class="flex_2">
									<p>蓝球第二位</p>
									<div>
										<p>大</p>
										<p>小</p>
									</div>
								</span>
							</div>
							<div class="com-record">
								<ul>
									<li v-for='(item,index) in bigOrSmall' :key='index'>
										<span class="flex_2">{{item.periodId}}</span>
										<span>{{item.weekDay}}</span>
										<template v-for='(items,indexs) in item.origin'>
											<span v-if='items == 0' :class="indexs>9&&indexs<15?'cur_bf':indexs%2==0?'cur_d':'cur_x'"><font>{{bigOrSmallIndex[indexs]}}</font></span>
											<span v-else>{{items}}</span>
										</template>
									</li>
								</ul>
							</div>
						</div>
					</div>
					<div class="zd-box">
						<ul>
							<li class="color_red">
								<span class="flex_2">出现次数</span>
								<span>-</span>
								<template v-for='(item,index) in bigOrSmallOther.appearCount'>
									<span>{{item}}</span>
								</template>
							</li>
							<li class="color_gray">
								<span class="flex_2">平均遗漏</span>
								<span>-</span>
								<template v-for='(item,index) in bigOrSmallOther.avgMiss'>
									<span>{{item}}</span>
								</template>
							</li>
							<li  class="color_blue">
								<span class="flex_2">最大遗漏</span>
								<span>-</span>
								<template v-for='(item,index) in bigOrSmallOther.maxMiss'>
									<span>{{item}}</span>
								</template>
							</li>
							<li  class="color_black">
								<span class="flex_2">最大连出</span>
								<span>-</span>
								<template v-for='(item,index) in bigOrSmallOther.maxContinuous'>
									<span>{{item}}</span>
								</template>
							</li>
						</ul>
					</div>
				</div>
				<div :class="currentNav==3?'page page3 active pageTit':'page page3 pageTit'" style="width:1150px">
					<div class="nav-com">
						<div class="nav-item" style="display: block;">
							<div class="tit-record">
								<span :class="paritySort?'icon_jt_down flex_2':'icon_jt flex_2'" @click='sortData(parity,currentNav)'><p>期次</p></span>
								<span><p>星<br>期</p></span>
								<span class="flex_2">
									<p>第一位</p>
									<div>
										<p>奇</p>
										<p>偶</p>
									</div>
								</span>
								<span class="flex_2">
									<p>第二位</p>
									<div>
										<p>奇</p>
										<p>偶</p>
									</div>
								</span>
								<span class="flex_2">
									<p>第三位</p>
									<div>
										<p>奇</p>
										<p>偶</p>
									</div>
								</span>
								<span class="flex_2">
									<p>第四位</p>
									<div>
										<p>奇</p>
										<p>偶</p>
									</div>
								</span>
								<span class="flex_2">
									<p>第五位</p>
									<div>
										<p>奇</p>
										<p>偶</p>
									</div>
								</span>
								
								<span class="flex_6">
									<p>奇偶比</p>
									<div>
										<p>0:5</p>
										<p>1:4</p>
										<p>2:3</p>
										<p>3:4</p>
										<p>4:5</p>
										<p>5:0</p>
									</div>
								</span>
								<span class="flex_2">
									<p>蓝球第一位</p>
									<div>
										<p>奇</p>
										<p>偶</p>
									</div>
								</span>
								<span class="flex_2">
									<p>蓝球第二位</p>
									<div>
										<p>奇</p>
										<p>偶</p>
									</div>
								</span>
							</div>
							<div class="com-record">
								<ul>
									<li v-for='(item,index) in parity' :key='index'>
										<span class="flex_2">{{item.periodId}}</span>
										<span>{{item.weekDay}}</span>
										<template v-for='(items,indexs) in item.origin'>
											<span v-if='items == 0' :class="indexs>9&&indexs<15?'cur_bf':indexs%2==0?'cur_d':'cur_x'"><font>{{parityIndex[indexs]}}</font></span>
											<span v-else>{{items}}</span>
										</template>
									</li>
								</ul>
							</div>
						</div>
					</div>
					<div class="zd-box">
						<ul>
							<li class="color_red">
								<span class="flex_2">出现次数</span>
								<span>-</span>
								<template v-for='(item,index) in parityOther.appearCount'>
									<span>{{item}}</span>
								</template>
							</li>
							<li class="color_gray">
								<span class="flex_2">平均遗漏</span>
								<span>-</span>
								<template v-for='(item,index) in parityOther.avgMiss'>
									<span>{{item}}</span>
								</template>
							</li>
							<li  class="color_blue">
								<span class="flex_2">最大遗漏</span>
								<span>-</span>
								<template v-for='(item,index) in parityOther.maxMiss'>
									<span>{{item}}</span>
								</template>
							</li>
							<li  class="color_black">
								<span class="flex_2">最大连出</span>
								<span>-</span>
								<template v-for='(item,index) in parityOther.maxContinuous'>
									<span>{{item}}</span>
								</template>
							</li>
						</ul>
					</div>
				</div>
				<div :class="currentNav==4?'page page4 active pageTit':'page page4 pageTit'" style="width:3230px">
					<div class="nav-com">
						<div class="nav-item" style="display: block;">
							<div class="tit-record">
								<span :class="spanSort?'icon_jt_down flex_2':'icon_jt flex_2'" @click='sortData(span,currentNav)'><p>期次</p></span>
								<span><p>星<br>期</p></span>
								<span class="line40"><p>和值</p></span>
								<span class="line40"><p>跨度</p></span>
								<span class="flex_31">
									<p>总跨度走势</p>
									<div>
										<p>4</p>
										<p>5</p>
										<p>6</p>
										<p>7</p>
										<p>8</p>
										<p>9</p>
										<p>10</p>
										<p>11</p>
										<p>12</p>
										<p>13</p>
										<p>14</p>
										<p>15</p>
										<p>16</p>
										<p>17</p>
										<p>18</p>
										<p>19</p>
										<p>20</p>
										<p>21</p>
										<p>22</p>
										<p>23</p>
										<p>24</p>
										<p>25</p>
										<p>26</p>
										<p>27</p>
										<p>28</p>
										<p>29</p>
										<p>30</p>
										<p>31</p>
										<p>32</p>
										<p>33</p>
										<p>34</p>
									</div>
								</span>
								<span class="flex_9">
									<p>跨度形态分析</p>
									<div>
										<p>大</p>
										<p>小</p>
										<p>奇</p>
										<p>偶</p>
										<p>质</p>
										<p>合</p>
										<p>0</p>
										<p>1</p>
										<p>2</p>
									</div>
								</span>
								<span class="line40">
									<p>振幅</p>
								</span>
								<span class="flex_31">
									<p>振幅走势</p>
									<div>
										<p>0</p>
										<p>1</p>
										<p>2</p>
										<p>3</p>
										<p>4</p>
										<p>5</p>
										<p>6</p>
										<p>7</p>
										<p>8</p>
										<p>9</p>
										<p>10</p>
										<p>11</p>
										<p>12</p>
										<p>13</p>
										<p>14</p>
										<p>15</p>
										<p>16</p>
										<p>17</p>
										<p>18</p>
										<p>19</p>
										<p>20</p>
										<p>21</p>
										<p>22</p>
										<p>23</p>
										<p>24</p>
										<p>25</p>
										<p>26</p>
										<p>27</p>
										<p>28</p>
										<p>29</p>
										<p>30</p>
									</div>
								</span>
							</div>
							<div class="com-record">
								<ul>
									<li v-for='(item,index) in span' :key='index'>
										<span class="flex_2">{{item.periodId}}</span>
										<span>{{item.weekDay}}</span>
										<template v-for='(items,indexs) in item.origin'>
											<span v-if='items == 0' :class="indexs>32&&indexs<42?indexs%2==0?'cur_d':'cur_x':'cur_bf'"><font>{{spanIndex[indexs]}}</font></span>
											<span v-else>{{items}}</span>
										</template>
									</li>
								</ul>
							</div>
						</div>
					</div>
					<div class="zd-box">
						<ul>
							<li class="color_red">
								<span class="flex_2">出现次数</span>
								<span>-</span>
								<template v-for='(item,index) in spanOther.appearCount'>
									<span>{{item}}</span>
								</template>
							</li>
							<li class="color_gray">
								<span class="flex_2">平均遗漏</span>
								<span>-</span>
								<template v-for='(item,index) in spanOther.avgMiss'>
									<span>{{item}}</span>
								</template>
							</li>
							<li  class="color_blue">
								<span class="flex_2">最大遗漏</span>
								<span>-</span>
								<template v-for='(item,index) in spanOther.maxMiss'>
									<span>{{item}}</span>
								</template>
							</li>
							<li  class="color_black">
								<span class="flex_2">最大连出</span>
								<span>-</span>
								<template v-for='(item,index) in spanOther.maxContinuous'>
									<span>{{item}}</span>
								</template>
							</li>
						</ul>
					</div>
				</div>
				<div :class="currentNav==5?'page page5 active pageTit':'page page5 pageTit'" style="width:1620px;">
					<div class="nav-com">
						<div class="nav-item" style="display: block;">
							<div class="tit-record">
								<span :class="frontAreaSort?'icon_jt_down flex_2':'icon_jt flex_2'" @click='sortData(frontArea,currentNav)'><p>期次</p></span>
								<span><p>星<br>期</p></span>
								<span class="flex_12">
									<p>一区</p>
									<div>
										<p>01</p>
										<p>02</p>
										<p>03</p>
										<p>04</p>
										<p>05</p>
										<p>06</p>
										<p>07</p>
										<p>08</p>
										<p>09</p>
										<p>10</p>
										<p>11</p>
										<p>12</p>
									</div>
								</span>
								<span class="flex_12">
									<p>二区</p>
									<div>
										<p>13</p>
										<p>14</p>
										<p>15</p>
										<p>16</p>
										<p>17</p>
										<p>18</p>
										<p>19</p>
										<p>20</p>
										<p>21</p>
										<p>22</p>
										<p>23</p>
										<p>24</p>
									</div>
								</span>
								<span class="flex_11">
									<p>三区</p>
									<div>
										<p>25</p>
										<p>26</p>
										<p>27</p>
										<p>28</p>
										<p>29</p>
										<p>30</p>
										<p>31</p>
										<p>32</p>
										<p>33</p>
										<p>34</p>
										<p>35</p>
									</div>
								</span>
								<span class="flex_16">
									<p>前区分析</p>
									<div>
										<p>和值</p>
										<p>跨度</p>
										<p>AC值</p>
										<p>区间比</p>
										<p>奇偶比</p>
										<p>冷热比</p>
										<p>重号</p>
										<p>连号</p>
									</div>
								</span>
							</div>
							<div class="com-record">
								<ul>
									<li v-for='(item,index) in frontArea' :key='index'>
										<span class="flex_2">{{item.periodId}}</span>
										<span>{{item.weekDay}}</span>
										<div class="flex-box flex_35">
											<template v-for='(items,indexs) in item.origin'>
												<span v-if='items == 0' class="cur"><font>{{(indexs+1)<10?('0'+(indexs+1).toString()):(indexs+1)}}</font></span>
												<span v-else>{{items}}</span>
											</template>
										</div>
										<div class="flex-box flex_16">
											<span>{{item.sumValue}}</span>
											<span>{{item.span}}</span>
											<span>{{item.ac}}</span>
											<span :class="checkValSame(item.sectionScore)?'cur3':''"><font>{{item.sectionScore}}</font></span>
											<span :class="checkValSame(item.parityScore)?'cur4':''"><font>{{item.parityScore}}</font></span>
											<span :class="checkValSame(item.hotScore)?'cur3':''"><font>{{item.hotScore}}</font></span>
											<span>{{item.repeatNumber}}</span>
											<span>{{item.continuousNumber}}</span>
										</div>
										
										
									</li>
								</ul>
							</div>
						</div>
					</div>
					<div class="zd-box">
						<ul>
							<li class="color_red">
								<span class="flex_2">出现次数</span>
								<span>-</span>
								<div class="flex_35 flex-box">
									<template v-for='(item,index) in frontAreaOther.appearCount'>
										<span>{{item}}</span>
									</template>
								</div>
								<div class="flex_16 flex-box">
									<template v-for='item in new Array(8)'>
										<span>-</span>
									</template>
								</div>
							</li>
							<li class="color_gray">
								<span class="flex_2">平均遗漏</span>
								<span>-</span>
								<div class="flex_35 flex-box">
									<template v-for='(item,index) in frontAreaOther.avgMiss'>
										<span>{{item}}</span>
									</template>
								</div>
								<div class="flex_16 flex-box">
									<template v-for='item in new Array(8)'>
										<span>-</span>
									</template>
								</div>
							</li>
							<li  class="color_blue">
								<span class="flex_2">最大遗漏</span>
								<span>-</span>
								<div class="flex_35 flex-box">
									<template v-for='(item,index) in frontAreaOther.maxMiss'>
										<span>{{item}}</span>
									</template>
								</div>
								<div class="flex_16 flex-box">
									<template v-for='item in new Array(8)'>
										<span>-</span>
									</template>
								</div>
							</li>
							<li  class="color_black">
								<span class="flex_2">最大连出</span>
								<span>-</span>
								<div class="flex_35 flex-box">
									<template v-for='(item,index) in frontAreaOther.maxContinuous'>
										<span>{{item}}</span>
									</template>
								</div>
								<div class="flex_16 flex-box">
									<template v-for='item in new Array(8)'>
										<span>-</span>
									</template>
								</div>
							</li>
						</ul>
					</div>
				</div>
				<div :class="currentNav==6?'page page6 active pageTit':'page page6 pageTit'" style="width:1590px">
					<div class="nav-com">
						<div class="nav-item" style="display: block;">
							<div class="tit-record">
								<span :class="backAreaSort?'icon_jt_down flex_2':'icon_jt flex_2'" @click='sortData(backArea,currentNav)'><p>期次</p></span>
								<span><p>星<br>期</p></span>
								<span class="flex_2 line40"><p>后区</p></span>
								<span class="flex_12">
									<p>后区号码分布</p>
									<div>
										<p>01</p>
										<p>02</p>
										<p>03</p>
										<p>04</p>
										<p>05</p>
										<p>06</p>
										<p>07</p>
										<p>08</p>
										<p>09</p>
										<p>10</p>
										<p>11</p>
										<p>12</p>
									</div>
								</span>
								<span>跨<br>度</span>
								<span class="flex_11">
									<p>后区跨度走势</p>
									<div>
										<p>1</p>
										<p>2</p>
										<p>3</p>
										<p>4</p>
										<p>5</p>
										<p>6</p>
										<p>7</p>
										<p>8</p>
										<p>9</p>
										<p>10</p>
										<p>11</p>
									</div>
								</span>
								<span class="flex_6">
									<p>后区大小形态</p>
									<div>
										<p>小小</p>
										<p>小大</p>
										<p>大大</p>
									</div>
								</span>
								<span class="flex_8">
									<p>后区奇偶形态</p>
									<div>
										<p>奇奇</p>
										<p>奇偶</p>
										<p>偶奇</p>
										<p>偶偶</p>
									</div>
								</span>
								<span class="flex_8">
									<p>后区冷热形态</p>
									<div>
										<p>冷冷</p>
										<p>冷热</p>
										<p>热冷</p>
										<p>热热</p>
									</div>
								</span>
								<span class="line40 flex_2"><p>和值</p></span>
							</div>
							<div class="com-record">
								<ul>
									<li v-for='(item,index) in backArea' :key='index'>
										<span class="flex_2">{{item.periodId}}</span>
										<span>{{item.weekDay}}</span>
										<span class="flex_2 blue">
											<p class="mr10">{{item.blueAwardCode.split(',')[0]<10?('0'+item.blueAwardCode.split(',')[0]):item.blueAwardCode.split(',')[0]}}</p>
											<p>{{item.blueAwardCode.split(',')[1]<10?('0'+item.blueAwardCode.split(',')[1]):item.blueAwardCode.split(',')[1]}}</p>
										</span>
										<div class="flex-box flex_24">
											<template v-for='(items,indexs) in item.origin.slice(0,24)'>
												<span v-if='items == 0' class="cur_blue"><font>{{backAreaIndex1[indexs]}}</font></span>
													<span v-else>{{items}}</span>
											</template>
										</div>
										<div class="flex-box flex_24">
											<template v-for='(items,indexs) in item.origin.slice(24,36)'>
												<span v-if='items == 0' class="cur_d2 flex_2"><font>{{backAreaIndex2[indexs]}}</font></span>
													<span v-else class="flex_2">{{items}}</span>
											</template>
										</div>
									</li>
								</ul>
							</div>
						</div>
					</div>
					<div class="zd-box">
						<ul>
							<li class="color_red">
								<span class="flex_2">出现次数</span>
								<span>-</span>
								<span class="flex_2">-</span>
								<div class="flex_24 flex-box">
									<template v-for='(item,index) in backAreaOther.appearCount'>
										<span>{{item}}</span>
									</template>
								</div>
								<div class="flex_24 flex-box">
									<template v-for='(item,index) in backAreaOther.appearCount1'>
										<span>{{item}}</span>
									</template>
								</div>
							</li>
							<li class="color_gray">
								<span class="flex_2">平均遗漏</span>
								<span>-</span>
								<span class="flex_2">-</span>
								<div class="flex_24 flex-box">
									<template v-for='(item,index) in backAreaOther.avgMiss'>
										<span>{{item}}</span>
									</template>
								</div>
								<div class="flex_24 flex-box">
									<template v-for='(item,index) in backAreaOther.avgMiss1'>
										<span>{{item}}</span>
									</template>
								</div>
							</li>
							<li  class="color_blue">
								<span class="flex_2">最大遗漏</span>
								<span>-</span>
								<span class="flex_2">-</span>
								<div class="flex_24 flex-box">
									<template v-for='(item,index) in backAreaOther.maxMiss'>
										<span>{{item}}</span>
									</template>
								</div>
								<div class="flex_24 flex-box">
									<template v-for='(item,index) in backAreaOther.maxMiss1'>
										<span>{{item}}</span>
									</template>
								</div>
							</li>
							<li  class="color_black">
								<span class="flex_2">最大连出</span>
								<span>-</span>
								<span class="flex_2">-</span>
								<div class="flex_24 flex-box">
									<template v-for='(item,index) in backAreaOther.maxContinuous'>
										<span>{{item}}</span>
									</template>
								</div>
								<div class="flex_24 flex-box">
									<template v-for='(item,index) in backAreaOther.maxContinuous1'>
										<span>{{item}}</span>
									</template>
								</div>
							</li>
						</ul>
					</div>
				</div>
				<div :class="currentNav==7?'page page7 active pageTit':'page page7 pageTit'" style="width:1240px;">
					<div class="nav-com">
						<div class="nav-item" style="display: block;">
							<div class="tit-record">
								<span :class="historySort?'icon_jt_down flex_2':'icon_jt flex_2'" @click='sortData(history,currentNav)'><p>期次</p></span>
								<span><p>星<br>期</p></span>
								<span class="flex_7">
									<p>开奖号码</p>
									<div>
										<p class="flex_5">前区</p>
										<p class="flex_2">后区</p>
									</div>
								</span>
								<span class="line40"><p>和值</p></span>
								<span><p>和值<br>尾数</p></span>
								<span><p>尾数<br>和值</p></span>
								<span><p>尾号<br>组数</p></span>
								<span><p>奇数<br>个数</p></span>
								<span><p>偶数<br>个数</p></span>
								<span><p>奇偶<br>偏差</p></span>
								<span><p>大号<br>偏差</p></span>
								<span><p>小号<br>偏差</p></span>
								<span><p>大小<br>偏差</p></span>
								<span><p>质数<br>个数</p></span>
								<span><p>合数<br>个数</p></span>
								<span><p>连号<br>个数</p></span>
								<span><p>连号<br>组数</p></span>
								<span><p>首尾<br>差</p></span>
								<span><p>最大<br>间距</p></span>
								<span class="line40"><p>AC值</p></span>
								<span><p>重号<br>个数</p></span>
								<span><p>邻号<br>个数</p></span>
								<span><p>孤号<br>个数</p></span>
								<span><p>三区<br>比</p></span>
							</div>
							<div class="com-record">
								<ul>
									<li v-for='(item,index) in history' :key='index'>
										<span class="flex_2">{{item.periodId}}</span>
										<span>{{item.weekDay}}</span>
										<div class="flex_7 flex-box">
											<template v-for='(items,indexs) in item.origin1'>
												<span>{{items}}</span>
											</template>
										</div>
										<template v-for='(items,indexs) in item.origin2'>
											<span>{{items}}</span>
										</template>
										
									</li>
								</ul>
							</div>
						</div>
					</div>
				</div>
				<div :class="currentNav==8?'page page8 active pageTit':'page page8 pageTit'" style="width:1620px;">
					<div class="nav-com">
						<div class="nav-item" style="display: block;">
							<div class="tit-record">
								<span :class="continuousSort?'icon_jt_down flex_2':'icon_jt flex_2'" @click='sortData(continuous,currentNav)'><p>期次</p></span>
								<span><p>星<br>期</p></span>
								<span class="flex_12">
									<p>一区</p>
									<div>
										<p>01</p>
										<p>02</p>
										<p>03</p>
										<p>04</p>
										<p>05</p>
										<p>06</p>
										<p>07</p>
										<p>08</p>
										<p>09</p>
										<p>10</p>
										<p>11</p>
										<p>12</p>
									</div>
								</span>
								<span class="flex_12">
									<p>二区</p>
									<div>
										<p>13</p>
										<p>14</p>
										<p>15</p>
										<p>16</p>
										<p>17</p>
										<p>18</p>
										<p>19</p>
										<p>20</p>
										<p>21</p>
										<p>22</p>
										<p>23</p>
										<p>24</p>
									</div>
								</span>
								<span class="flex_11">
									<p>三区</p>
									<div>
										<p>25</p>
										<p>26</p>
										<p>27</p>
										<p>28</p>
										<p>29</p>
										<p>30</p>
										<p>31</p>
										<p>32</p>
										<p>33</p>
										<p>34</p>
										<p>35</p>
									</div>
								</span>
								<span class="flex_12">
									<p>红球分析</p>
									<div>
										<p>和值</p>
										<p>跨度</p>
										<p>区间比</p>
										<p>奇偶比</p>
										<p>重号</p>
										<p>连号</p>
									</div>
								</span>
								<span class="flex_2 line40">
									<p>蓝球</p>
								</span>
							</div>
							<div class="com-record">
								<ul>
									<li v-for='(item,index) in continuous' :key='index'>
										<span class="flex_2">{{item.periodId}}</span>
										<span>{{item.weekDay}}</span>
										<div class="flex-box flex_35">
											<template v-for='(items,indexs) in item.origin'>
												<span v-if='items == 0' class="cur"><font>{{(indexs+1)<10?('0'+(indexs+1).toString()):(indexs+1)}}</font></span>
												<span v-else>{{items}}</span>
											</template>
										</div>
										<div class="flex_12 flex-box">
											<span>{{item.sumValue}}</span>
											<span>{{item.span}}</span>
											<span :class="checkValSame(item.sectionScore)?'cur3':''"><font>{{item.sectionScore}}</font></span>
											<span :class="checkValSame(item.parityScore)?'cur4':''"><font>{{item.parityScore}}</font></span>
											<span>{{item.repeatNumber}}</span>
											<span>{{item.continuousNumber}}</span>
										</div>
										<span class="flex_2">{{item.blueAwardCode}}</span>
									</li>
								</ul>
							</div>
						</div>
					</div>
					<div class="zd-box">
						<ul>
							<li class="color_red">
								<span class="flex_2">出现次数</span>
								<span>-</span>
								<div class="flex_35 flex-box">
									<template v-for='(item,index) in continuousOther.appearCount'>
										<span>{{item}}</span>
									</template>
								</div>
								<div class="flex_12 flex-box">
									<template v-for='item in new Array(6)'>
										<span>-</span>
									</template>
								</div>
								<span class="flex_2">-</span>
							</li>
							<li class="color_gray">
								<span class="flex_2">平均遗漏</span>
								<span>-</span>
								<div class="flex_35 flex-box">
									<template v-for='(item,index) in continuousOther.avgMiss'>
										<span>{{item}}</span>
									</template>
								</div>
								<div class="flex_12 flex-box">
									<template v-for='item in new Array(6)'>
										<span>-</span>
									</template>
								</div>
								<span class="flex_2">-</span>
							</li>
							<li  class="color_blue">
								<span class="flex_2">最大遗漏</span>
								<span>-</span>
								<div class="flex_35 flex-box">
									<template v-for='(item,index) in continuousOther.maxMiss'>
										<span>{{item}}</span>
									</template>
								</div>
								<div class="flex_12 flex-box">
									<template v-for='item in new Array(6)'>
										<span>-</span>
									</template>
								</div>
								<span class="flex_2">-</span>
							</li>
							<li  class="color_black">
								<span class="flex_2">最大连出</span>
								<span>-</span>
								<div class="flex_35 flex-box">
									<template v-for='(item,index) in continuousOther.maxContinuous'>
										<span>{{item}}</span>
									</template>
								</div>
								<div class="flex_12 flex-box">
									<template v-for='item in new Array(6)'>
										<span>-</span>
									</template>
								</div>
								<span class="flex_2">-</span>
							</li>
						</ul>
					</div>
				</div>
				<div :class="currentNav==9?'page page9 active pageTit':'page page9 pageTit'" style="width:1620px">
					<div class="nav-com">
						<div class="nav-item" style="display: block;">
							<div class="tit-record">
								<span :class="repeatSort?'icon_jt_down flex_2':'icon_jt flex_2'" @click='sortData(repeat,currentNav)'><p>期次</p></span>
								<span><p>星<br>期</p></span>
								<span class="flex_12">
									<p>一区</p>
									<div>
										<p>01</p>
										<p>02</p>
										<p>03</p>
										<p>04</p>
										<p>05</p>
										<p>06</p>
										<p>07</p>
										<p>08</p>
										<p>09</p>
										<p>10</p>
										<p>11</p>
										<p>12</p>
									</div>
								</span>
								<span class="flex_12">
									<p>二区</p>
									<div>
										<p>13</p>
										<p>14</p>
										<p>15</p>
										<p>16</p>
										<p>17</p>
										<p>18</p>
										<p>19</p>
										<p>20</p>
										<p>21</p>
										<p>22</p>
										<p>23</p>
										<p>24</p>
									</div>
								</span>
								<span class="flex_11">
									<p>三区</p>
									<div>
										<p>25</p>
										<p>26</p>
										<p>27</p>
										<p>28</p>
										<p>29</p>
										<p>30</p>
										<p>31</p>
										<p>32</p>
										<p>33</p>
										<p>34</p>
										<p>35</p>
									</div>
								</span>
								<span class="flex_12">
									<p>红球分析</p>
									<div>
										<p>和值</p>
										<p>跨度</p>
										<p>区间比</p>
										<p>奇偶比</p>
										<p>重号</p>
										<p>连号</p>
									</div>
								</span>
								<span class="flex_2 line40">
									<p>蓝球</p>
								</span>
							</div>
							<div class="com-record">
								<ul>
									<li v-for='(item,index) in repeat' :key='index'>
										<span class="flex_2">{{item.periodId}}</span>
										<span>{{item.weekDay}}</span>
										<div class="flex-box flex_35">
											<template v-for='(items,indexs) in item.origin'>
												<span v-if='items == 0' class="cur"><font>{{(indexs+1)<10?('0'+(indexs+1).toString()):(indexs+1)}}</font></span>
												<span v-else>{{items}}</span>
											</template>
										</div>
										<div class="flex_12 flex-box">
											<span>{{item.sumValue}}</span>
											<span>{{item.span}}</span>
											<span :class="checkValSame(item.sectionScore)?'cur3':''"><font>{{item.sectionScore}}</font></span>
											<span :class="checkValSame(item.parityScore)?'cur4':''"><font>{{item.parityScore}}</font></span>
											<span>{{item.repeatNumber}}</span>
											<span>{{item.continuousNumber}}</span>
										</div>
										<span class="flex_2">{{item.blueAwardCode}}</span>
									</li>
								</ul>
							</div>
						</div>
					</div>
					<div class="zd-box">
						<ul>
							<li class="color_red">
								<span class="flex_2">出现次数</span>
								<span>-</span>
								<div class="flex_35 flex-box">
									<template v-for='(item,index) in repeatOther.appearCount'>
										<span>{{item}}</span>
									</template>
								</div>
								<div class="flex_12 flex-box">
									<template v-for='item in new Array(6)'>
										<span>-</span>
									</template>
								</div>
								<span class="flex_2">-</span>
							</li>
							<li class="color_gray">
								<span class="flex_2">平均遗漏</span>
								<span>-</span>
								<div class="flex_35 flex-box">
									<template v-for='(item,index) in repeatOther.avgMiss'>
										<span>{{item}}</span>
									</template>
								</div>
								<div class="flex_12 flex-box">
									<template v-for='item in new Array(6)'>
										<span>-</span>
									</template>
								</div>
								<span class="flex_2">-</span>
							</li>
							<li  class="color_blue">
								<span class="flex_2">最大遗漏</span>
								<span>-</span>
								<div class="flex_35 flex-box">
									<template v-for='(item,index) in repeatOther.maxMiss'>
										<span>{{item}}</span>
									</template>
								</div>
								<div class="flex_12 flex-box">
									<template v-for='item in new Array(6)'>
										<span>-</span>
									</template>
								</div>
								<span class="flex_2">-</span>
							</li>
							<li  class="color_black">
								<span class="flex_2">最大连出</span>
								<span>-</span>
								<div class="flex_35 flex-box">
									<template v-for='(item,index) in repeatOther.maxContinuous'>
										<span>{{item}}</span>
									</template>
								</div>
								<div class="flex_12 flex-box">
									<template v-for='item in new Array(6)'>
										<span>-</span>
									</template>
								</div>
								<span class="flex_2">-</span>
							</li>
						</ul>
					</div>
				</div>
			</div>
		</div>
	</div>
	<footer class="footer">
		<span :class="currentNum==30?'hover':''" @click='changeBasicData(30,data)'>30期</span>
		<span :class="currentNum==50?'hover':''" @click='changeBasicData(50,data)'>50期</span>
		<span :class="currentNum==100?'hover':''" @click='changeBasicData(100,data)'>100期</span>
	</footer>
  </div>
</template>

<script>
import zstHeader from './head'
import {getTrend} from '@/api/user'
import { Toast } from 'vant';
export default {
	data() {
	    return {
	    	title:'',
	    	data:{},
	    	basic:[],
	    	basicOther:{},
	    	frontArea:[],
	    	frontAreaOther:{},
	    	backArea:[],
	    	backAreaOther:{},
	    	continuous:[],
	    	continuousOther:{},
	    	history:[],
	    	historyOther:{},
	    	bigOrSmall:[],
	    	bigOrSmallOther:{},
	    	parity:[],
	    	parityOther:{},
	    	repeat:[],
	    	repeatOther:{},
	    	span:[],
	    	spanOther:{},
	    	currentNum:30,
	    	currentNav:'1',

	    	basicSort:false,
	    	frontAreaSort:false,
	    	backAreaSort:false,
	    	continuousSort:false,
	    	repeatSort:false,
	    	historySort:false,
	    	bigOrSmallSort:false,
	    	paritySort:false,
	    	spanSort:false,

			bigOrSmallIndex:['大','小','大','小','大','小','大','小','大','小','0:5','1:4','2:3','3:2','4:1','5:0','大','小','大','小'],
			parityIndex:['奇','偶','奇','偶','奇','偶','奇','偶','奇','偶','0:5','1:4','2:3','3:2','4:1','5:0','奇','偶','奇','偶'],
			spanIndex:['0','0','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33','34','大','小','奇','偶','质','合','0','1','2','0','0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30'],
			backAreaIndex1:['01','02','03','04','05','06','07','08','09','10','11','12','0','1','2','3','4','5','6','7','8','9','10','11'],
			backAreaIndex2:['小小','小大','大大','奇奇','奇偶','偶奇','偶偶','冷冷','冷热','热冷','热热','0'],
	    }
	},
	props:['gid','currentNavs'],
	components:{
		zstHeader,
		// [Dialog.Component.name]: Dialog.Component,
	},
	watch: {
	　　　'$route' (to, from) {
			this.getInfo()
		}
	　　　　　
	},
	methods:{
		getData(gid){
			getTrend({"gid":gid}).then((v)=>{
				let data = v.data;
				let status = data.status,mess = data.message;
				if (status === "_0000") {
					data = data.data;
					let hot = [],hot100=[],hot30 = [];
					this.basicOther = {
						appearCount:data.basic.appearCount.split(','),
						avgMiss:data.basic.avgMiss.split(','),
						blueAppearCount:data.basic.blueAppearCount.split(','),
						blueAvgMiss:data.basic.blueAvgMiss.split(','),
						blueMaxContinuous: data.basic.blueMaxContinuous.split(','),
						blueMaxMiss: data.basic.blueMaxMiss.split(','),
						maxContinuous:data.basic.maxContinuous.split(','),
						maxMiss: data.basic.maxMiss.split(','),
					}
					let continuous = data.continuous;
					this.continuousOther = {
						appearCount:continuous.appearCount.split(','),
						avgMiss:continuous.avgMiss.split(','),
						maxContinuous:continuous.maxContinuous.split(','),
						maxMiss: continuous.maxMiss.split(','),
					}
					let repeat = data.repeat;
					this.repeatOther = {
						appearCount:repeat.appearCount.split(','),
						avgMiss:repeat.avgMiss.split(','),
						maxContinuous:repeat.maxContinuous.split(','),
						maxMiss: repeat.maxMiss.split(','),
					}
					let frontArea = data.frontArea;
					this.frontAreaOther = {
						appearCount:frontArea.appearCount.split(','),
						avgMiss:frontArea.avgMiss.split(','),
						maxContinuous:frontArea.maxContinuous.split(','),
						maxMiss: frontArea.maxMiss.split(','),
					}
					let backArea = data.backArea;
					this.backAreaOther = {
						appearCount:backArea.appearCount.split(',').slice(0,24),
						avgMiss:backArea.avgMiss.split(',').slice(0,24),
						maxContinuous:backArea.maxContinuous.split(',').slice(0,24),
						maxMiss: backArea.maxMiss.split(',').slice(0,24),
						appearCount1:backArea.appearCount.split(',').slice(24,36),
						avgMiss1:backArea.avgMiss.split(',').slice(24,36),
						maxContinuous1:backArea.maxContinuous.split(',').slice(24,36),
						maxMiss1: backArea.maxMiss.split(',').slice(24,36),
					}
					let bigOrSmall = data.bigOrSmall;
					this.bigOrSmallOther = {
						appearCount:bigOrSmall.appearCount.split(',').concat(bigOrSmall.scoreAppearCount.split(','),bigOrSmall.blueAppearCount.split(',')),
						avgMiss:bigOrSmall.avgMiss.split(',').concat(bigOrSmall.scoreAvgMiss.split(','),bigOrSmall.blueAvgMiss.split(',')),
						maxContinuous:bigOrSmall.maxContinuous.split(',').concat(bigOrSmall.scoreMaxContinuous.split(','),bigOrSmall.blueMaxContinuous.split(',')),
						maxMiss: bigOrSmall.maxMiss.split(',').concat(bigOrSmall.scoreMaxMiss.split(','),bigOrSmall.blueMaxMiss.split(',')),
					}
					let parity = data.parity;
					this.parityOther = {
						appearCount:parity.appearCount.split(',').concat(parity.scoreAppearCount.split(','),parity.blueAppearCount.split(',')),
						avgMiss:parity.avgMiss.split(',').concat(parity.scoreAvgMiss.split(','),parity.blueAvgMiss.split(',')),
						maxContinuous:parity.maxContinuous.split(',').concat(parity.scoreMaxContinuous.split(','),parity.blueMaxContinuous.split(',')),
						maxMiss: parity.maxMiss.split(',').concat(parity.scoreMaxMiss.split(','),parity.blueMaxMiss.split(',')),
					}
					let span = data.span;
					this.spanOther = {
						appearCount:span.appearCount.split(','),
						avgMiss:span.avgMiss.split(','),
						maxContinuous:span.maxContinuous.split(','),
						maxMiss: span.maxMiss.split(','),
					}
					this.data = data;
					this.changeBasicData(30,data);
				}else{
					Toast(mess)
				}
			})
		},
		changeBasicData(num,v){
			let data = v;
			let basicData =  data.basic.trend.slice(0,num),
				continuousData = data.continuous.trend.slice(0,num),
				repeatData = data.repeat.trend.slice(0,num),
				bigOrSmallData = data.bigOrSmall.trend.slice(0,num),
				parityData = data.parity.trend.slice(0,num),
				frontAreaData = data.frontArea.trend.slice(0,num),
				backAreaData = data.backArea.trend.slice(0,num),
				historyData = data.history.trend.slice(0,num),
				spanData = data.span.trend.slice(0,num);
			this.currentNum = num
			basicData = basicData.map((v,index)=>{
				let datas = {}
				Object.assign(datas,v,{'origin':v.origin.split(','),'num':index,blueOrigin:v.blueOrigin.split(',')});
				return datas
			})
			
			continuousData = continuousData.map((v,index)=>{
				let datas = {}
				Object.assign(datas,v,{
					'origin':v.origin.split(','),
					'num':index
					}
				);
				return datas
			})
			repeatData = repeatData.map((v,index)=>{
				let datas = {}
				Object.assign(datas,v,{
					'origin':v.origin.split(','),
					'num':index
					}
				);
				return datas
			})
			frontAreaData = frontAreaData.map((v,index)=>{
				let datas = {}
				Object.assign(datas,v,{
					'origin':v.origin.split(','),
					'num':index
					}
				);
				return datas
			})
			backAreaData = backAreaData.map((v,index)=>{
				let datas = {}
				Object.assign(datas,v,{
					'origin':v.origin.split(','),
					'num':index
					}
				);
				return datas
			})
			historyData = historyData.map((v,index)=>{
				let datas = {}
				Object.assign(datas,v,{
					'origin1':v.origin.split(',').slice(0,7),
					'origin2':v.origin.split(',').slice(7,28),
					'num':index
					}
				);
				return datas
			})
			bigOrSmallData = bigOrSmallData.map((v,index)=>{
				let datas = {}
				Object.assign(datas,v,{
					'origin':v.origin.split(',').concat(v.score.split(','),v.blueOrigin.split(',')),
					'num':index
					}
				);
				return datas
			})
			parityData = parityData.map((v,index)=>{
				let datas = {}
				Object.assign(datas,v,{
					'origin':v.origin.split(',').concat(v.score.split(','),v.blueOrigin.split(',')),
					'num':index
					}
				);
				return datas
			})
			spanData = spanData.map((v,index)=>{
				let datas = {}
				Object.assign(datas,v,{
					'origin':v.origin.split(','),
					'num':index
					}
				);
				return datas
			})
			console.log(historyData)
			this.basic = basicData
			this.continuous = continuousData
			this.repeat = repeatData
			this.frontArea = frontAreaData
			this.backArea =backAreaData
			this.history =historyData
			this.bigOrSmall = bigOrSmallData
			this.parity = parityData
			this.span = spanData
			
		},
		sortData(data,current){
			if (current==1) {
				this.basicSort = !this.basicSort
			}
			if (current==2) {
				this.bigOrSmallSort = !this.bigOrSmallSort
			}
			if (current==3) {
				this.paritySort = !this.paritySort
			}
			if (current==4) {
				this.spanSort = !this.spanSort
			}
			if (current==5) {
				this.frontAreaSort = !this.frontAreaSort
			}
			if (current==6) {
				this.backAreaSort = !this.backAreaSort
			}
			if (current==7) {
				this.historySort = !this.historySort
			}
			if (current==8) {
				this.continuousSort = !this.continuousSort
			}
			if (current==9) {
				this.repeatSort = !this.repeatSort
			}
			data.sort(function(a,b){
				if (Number(a.num)-Number(b.num)>0) {
					return Number(b.num)-Number(a.num);
				}else{
					return Number(a.num)-Number(b.num);
				}
				
			})
		},
		getInfo(){//初使化
			this.currentNav = this.currentNavs;
			this.title = this.lottery[this.gid].name;
			this.getData(this.gid);
		},
		checkValSame(val){
			let arr = val.split(':');
			let arrLen = arr.length;
			let i = 0;
			arr.map(v=>{
				if (v!==arr[0]) {
					i++
				}
			});
			if (i==0) {
				return true
			}else{
				return false;
			}
		}

	},
	created(){
		this.getInfo();

	},
	mounted () {
		var tab=document.getElementById("demo");
		let currentNavs = this.currentNav;
		tab.scrollLeft=(currentNavs-1)*90;
	}
};
</script>

<style lang="less" scoped>
	@import './style.less';
</style>

